package com.sc.nft.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalTime;
import java.util.Date;

@Data
public class CollectiveSalesTimePointsConfigDTO {
    @ApiModelProperty("购买条件藏品Id")
    private Long buyCollectionId;
    @ApiModelProperty("时间点")
    @NotNull(message = "请输入时间点")
    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
    private Date timePoint;
    @ApiModelProperty("价格")
    @NotNull(message = "请输入价格")
    @Range(min = 0L,message = "价格不能小于0")
    private BigDecimal price;
}
